import http from 'k6/http';
import {Trend} from 'k6/metrics';

let my_trend = new Trend("waiting_times");//自定义指标的名称，使用变量my_trend引用该指标

export default function(){
	let r = http.get('http://www.baidu.com');
	my_trend.add(r.timings.waiting);
	
}